import request from '@/utils/request'

// 获取我的待办
export function getFlowTodoCount() {
  return request({
    url: '/api/visualdev/Dashboard/FlowTodoCount',
    method: 'get'
  })
}
// 获取通知公告
export function getNotice() {
  return request({
    url: '/api/visualdev/Dashboard/Notice',
    method: 'get'
  })
}
// 获取未读邮件
export function getEmail() {
  return request({
    url: '/api/visualdev/Dashboard/Email',
    method: 'get'
  })
}
// 获取待办事项
export function getFlowTodo() {
  return request({
    url: '/api/visualdev/Dashboard/FlowTodo',
    method: 'get'
  })
}
// 获取我的待办事项
export function getMyFlowTodo() {
  return request({
    url: '/api/visualdev/Dashboard/MyFlowTodo',
    method: 'get'
  })
}

// 门户新加入接口

// 获取数据简报
export function getDataReport(id) {
  return request({
    url: `/api/zgyf/asso/AssoMain/SystemHomePage/DataReport/${id}`,
    method: 'get'
  })
}

// 获取供应发布量
export function getAccountSupply(data) {
  return request({
    url: `/api/zgyf/asso/AssoMain/SystemHomePage/GetAccountSupply`,
    method: 'post',
    data
  })
}

// 获取本年应收会费
export function getMemberShipDuesOfThisYear() {
  return request({
    url: `/api/zgyf/asso/AssoMain/SystemHomePage/MemberShipDuesOfThisYear`,
    method: 'get'
  })
}

// 获取累计收费
export function getAccumulatedCharges() {
  return request({
    url: `/api/zgyf/asso/AssoMain/SystemHomePage/AccumulatedCharges`,
    method: 'get'
  })
}

// 获取平台活跃度
export function getPlatformActivity(id) {
  return request({
    url: `/api/zgyf/asso/AssoMain/SystemHomePage/PlatformActivity/${id}`,
    method: 'get'
  })
}

// 获取会员排名
export function getVipRanking() {
  return request({
    url: `/api/zgyf/asso/AssoMain/SystemHomePage/vipRanking`,
    method: 'get'
  })
}
